<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    function fun(){
        alert("鼠标移入了")
    }
</script>
<body>
    <p onmousemove="fun()">移入</p>
    <p onmouseenter="fun()">hao</p>不支持冒泡  鼠标从元素外部移动到内部时触发 鼠标在内部移动不触发
</body>
</html>